---
layout: example
categories: example/v1.0.0
version: v1.0.0
title: Disable world wrapping
description: Instead of loading tiles beyond -180 and 180, only show one copy of the world.
tags:
  - layers
---
<div id='map'></div>

<script>
var map = L.mapbox.map('map', 'mapbox.streets', {
    // These options apply to the tile layer in the map.
    tileLayer: {
        // This map option disables world wrapping. by default, it is false.
        continuousWorld: false,
        // This option disables loading tiles outside of the world bounds.
        noWrap: true
    }
}).setView([40, 0], 2);
</script>
